package cn.edu.scau.cmi.zengGuanSheng.composite.consistent;

import java.util.ArrayList;
import java.util.List;

import javafx.scene.control.TextArea;

public abstract class ConsistentComponent {
	protected String name;
	protected List<ConsistentComponent> children = new ArrayList<>();
	
	protected abstract void addChild(ConsistentComponent child);
	
	protected abstract void deleteChild(ConsistentComponent child);
	
	protected abstract ConsistentComponent getParent();
	
	protected abstract List<ConsistentComponent> getChildren();
	
	protected abstract void setchildren(List<ConsistentComponent> children);
	
	protected abstract void display(int level);
	
	//该方法为综合性实验而设
	protected abstract void display1(int level,TextArea textArea);
}
